﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.View
{
    public class VApprovalTree
    {
        [Key]
        public int ID { get; set; }

        public string Name { get; set; }

        public DateTime CreateDateTime { get; set; }

        public int TypeID { get; set; }

        [NotMapped]
        public string TypeName { get { if (this.TypeID == 1) { return "审批流程"; } else { return "处理流程"; } } }

        public string CustomFormName { get; set; } = "基础流程";

        public int Status { get; set; }

        public int CustomFormID { get; set; }

    }

   
}
